package com.kaili.db.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.kaili.pojo.dto.delivery.EwbsDeliveryAddDTO;
import com.kaili.pojo.dto.delivery.EwbsDeliveryEditDTO;
import com.kaili.pojo.entity.HsEwbsDelivery;
import com.kaili.pojo.vo.AppointQueryVO;
import com.kaili.pojo.vo.DeliveryPointQueryVO;
import com.kaili.pojo.vo.DeliveryQueryVO;
import com.kaili.common.exception.BaseExcept;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
public interface IHsEwbsDeliveryService extends IService<HsEwbsDelivery> {

    public int  addDelivery(EwbsDeliveryAddDTO addBean) throws BaseExcept;

    public int  updateDelivery(EwbsDeliveryEditDTO editBean) throws BaseExcept;

    public Page<DeliveryQueryVO> queryDeliveryPageList(Page<DeliveryQueryVO> pager, Map search) throws BaseExcept;

    public List<AppointQueryVO> queryAppointListByDeliveryNo(Map search) throws BaseExcept;

    List<DeliveryQueryVO> queryDeliveryList(Map<String,Object> searchMap)throws BaseExcept;

    DeliveryQueryVO queryDeliveryInfo(Map search) throws BaseExcept;

    public int  doFinishDelivery(List<String> operationIdList)throws BaseExcept;


    List<DeliveryPointQueryVO> getDeliveryPointList(Map<String,Object> searchMap)throws BaseExcept;

    public int deleteDelivery(String operationId)throws BaseExcept;
}
